home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_11_06 / 1106116a < prev    next >
Text File  |  1993-03-28  |  473b  |  23 lines

  1. main()
  2.     {
  3.     File file1, file 2;
  4.     int return_code;
  5.     int ret1, ret2;
  6.     ret1 =  File_initialize(&file1, "filename1", "purpose1"); 
  7.     ret2 =  File_initialize(&file2, "filename2", "purpose2");
  8.     if (ret1 == SUCCESS && ret2 == SUCCESS))
  9.         {
  10.         return_code = 0;
  11.         /* Do whatever required */
  12.         }
  13.     else
  14.         return_code = 1;
  15.     File_terminate(&file1);
  16.     File_terminate(&file2);
  17.     exit(return_code);
  18.     }
  19.  
  20.  
  21.  
  22.  
  23.